<template>
  <div id="app">
    <h1>{{title}}</h1>
    <users></users>
  </div>
</template>

<script>
// 引入局部组件
import Users from './components/Users'

// 根组件
export default {
  name: 'App',
  // 注册局部组件
  // components: { Users },
  components: { "users": Users },

  data: function() {
    return {
      title: "First VueCli Project"
    }
  }
}
</script>

<!-- scoped:域，CSS只在当前组件生效 -->
<style scoped>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* text-align: center; */
  color: #2c3e50;
  margin-top: 60px;
}

h1 {
  color: purple;
}
</style>
